/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.tb_goods_class.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.sys.entity.User;

/**
 * 货物类型管理Entity
 * @author ZhangYangZe
 * @version 2017-05-13
 */
public class TbGoodsClass extends DataEntity<TbGoodsClass> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 货物类型名称
	private String shortName;		// 简称
	public TbGoodsClass() {
		super();
	}

	public TbGoodsClass(String id){
		super(id);
	}

	@Length(min=1, max=50, message="货物类型名称长度必须介于 1 和 50 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=30, message="简称长度必须介于 1 和 30 之间")
	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}
	private User y;
	private User s;
	public User getY() {
		return y;
	}

	public void setY(User y) {
		this.y = y;
	}

	public User getS() {
		return s;
	}

	public void setS(User s) {
		this.s = s;
	}
}